<template>
  <div class="userinformanage">
       <el-table :data="tableData" style="width: 100%" class="tabledata">
      <el-table-column label="用户名" width="300">
        <template slot-scope="scope">
          <i class="el-icon-time"></i>
          <span style="margin-left: 10px">{{ scope.row.user }}</span>
        </template>
      </el-table-column>
      <el-table-column label="电话" width="300">
        <template slot-scope="scope">
          <i class="el-icon-time"></i>
          <span style="margin-left: 10px">{{ scope.row.phone }}</span>
        </template>
      </el-table-column>
      <el-table-column label="住址" width="280">
        <template slot-scope="scope">
          <i class="el-icon-time"></i>
          <span style="margin-left: 10px">{{ scope.row.address }}</span>
        </template>
      </el-table-column>
      <el-table-column label="操作" width="180">
        <template slot-scope="scope">
         
          <el-popconfirm title="确定删除此用户吗？">
            <el-button
              size="mini"
              type="danger"
              slot="reference"
              @click="handleDelete(scope.$index, scope.row)"
              >删除</el-button
            >
          </el-popconfirm>
        </template>
      </el-table-column>
    </el-table>
    
    <el-pagination small layout="prev, pager, next" :total="50">
    </el-pagination>
  </div>
</template>

<script>
export default {
  name: "UserInforManage",
  data() {
    return {
      tableData: [],
      visible: false,
    };
  },
  beforeMount() {
    // 获取数据
    this.axios.get("/userinformanage").then((res) => {
      this.tableData = res.data.userinfo;
    });
  },
  methods: {},
};
</script>

<style lang="scss">
.userinformanage {
  background-color: white;
  padding: 20px;
  .tabledata {
    margin-bottom: 10px;
  }
}
</style>